package com.sdppf.service.impl;

import com.sdppf.dao.PageContentDao;
import com.sdppf.service.PageContentService;

public class PageContentServiceImpl<T> implements PageContentService<T> {

	@Override
	public Iterable<T> GetPageList(int index, String tableType,int pageNumber) {
		String hql = "from "+tableType;
		return this.pageContentDao.GetList(index, hql, pageNumber);
	}
	
	
	private PageContentDao<T> pageContentDao;

	public PageContentDao<T> getPageContentDao() {
		return pageContentDao;
	}

	public void setPageContentDao(PageContentDao<T> pageContentDao) {
		this.pageContentDao = pageContentDao;
	}
}
